package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 设备管理-设备录入表
 * </p>
 *
 * @author liangjiuqing
 * @since 2024-09-27 10:14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@TableName("t_device_v2_input")
@ApiModel(value = "TDeviceV2Input对象", description = "设备管理-设备录入表")
public class TDeviceV2Input extends CommonEntity {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备名称", required = true)
    @NotBlank(message = "设备名称不能为空")
    @TableField("device_name")
    private String deviceName;

    @ApiModelProperty(value = "设备对接码", required = true)
    @NotBlank(message = "设备对接码不能为空")
    @TableField("device_num")
    private String deviceNum;

    @ApiModelProperty("项目id")
    @TableField("project_id")
    private Long projectId;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;
}
